<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

	<xsl:template match="simplePagesEdit/run">
		<div align="right">[<a href="/admin/simplePagesEdit/createPage/"><b><gt>create page</gt></b></a>]</div>
		<br/>
		<xsl:apply-templates/>
		<br/>
		<div align="right">[<a href="/admin/simplePagesEdit/createPage/"><b><gt>create page</gt></b></a>]</div>
	</xsl:template>

	<xsl:template match="sqlTable/head/column[position()=1]" priority="1"/>
	<xsl:template match="sqlTable/row/cell[position()=1]" priority="1"/>

	<xsl:template match="sqlTable/head/column[position()=5]" priority="1"/>
	<xsl:template match="sqlTable/row/cell[position()=5]" priority="1"/>

	<xsl:template match="sqlTable/row/cell[position()=2]" priority="1">
		<td align="center" width="20%"><xsl:apply-templates/></td>
	</xsl:template>
	
	<xsl:template match="sqlTable/row/cell[position()=3]" priority="1">
		<td>
			<xsl:if test="../cell[position()=5]='no'">
				<xsl:attribute name="style">color:red;</xsl:attribute>
			</xsl:if>
			<xsl:apply-templates/>
		</td>
	</xsl:template>
	
	<xsl:template match="sqlTable/row/cell[position()=4]" priority="1">
		<td align="center" width="160"><xsl:apply-templates/></td>
		<td width="60" align="center">
			<a href="/admin/simplePagesEdit/edit/{../cell[position()=1]}/"><img src="{$imagesURL}edit_icon.gif" border="0" align="absmiddle"/></a>
			<a href="/admin/simplePagesEdit/delete/{../cell[position()=1]}/" onclick="return confirm('[gt]Delete?[/gt]');"><img src="{$imagesURL}delete_icon.gif" border="0" align="absmiddle"/></a>
		</td>
	</xsl:template>
	
</xsl:stylesheet>